<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>修改供应商信息</title>
<link href="<%=path%>/css/style_min.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/css/core.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/form.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/UsersSelect.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/css/xWindowPanel.css" rel="stylesheet"
	type="text/css" />
<link href="<%=path%>/css/xToolbar.css" rel="stylesheet" type="text/css" />
<style type="text/css">
input {
	width: 180px;
}

textarea {
	width: 503px;
	height: 40px;
}

select {
	width: 188px;
}

.n {
	text-align: right;
}
</style>
</head>
<body>
	<form name="supplierForm" id="supplierForm"
		action="<%=path%>/purchase/supplier/update.t4m" class="form"
		method="post">
		<div class="form-group">基本信息</div>
		<table class="form-table" cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<td class="form-left"><span class="form-required">*</span>供应商编号</td>
				<td class="form-right"><s:textfield name="supplier.code"
						cssClass="text required"></s:textfield></td>
				<td class="form-left">助记码</td>
				<td class="form-right"><s:textfield name="supplier.helpCode"
						cssClass="text"></s:textfield></td>
			</tr>
			<tr>
				<td class="form-left"><span class="form-required">*</span>供应商名称</td>
				<td class="form-right"><s:textfield name="supplier.name"
						cssClass="text required"></s:textfield></td>
				<td class="form-left">业务员</td>
				<td class="form-right"><s:hidden name="supplier.operator.id"
						id="operatorId"></s:hidden></td>
			</tr>
			<tr>
				<td class="form-left"><span class="form-required">*</span>供应商类别</td>
				<td class="form-right"><s:select name="supplier.type.id"
						list="typeList" listKey="id" listValue="name" /></td>
				<td class="form-left">所属地区</td>
				<td class="form-right"><s:select name="supplier.region.id"
						list="regionList" listKey="id" listValue="name" /></td>
			</tr>
			<tr>
				<td class="form-left">备注</td>
				<td class="form-right" colspan="3"><s:textarea
						name="supplier.remark" cssClass="textarea"></s:textarea></td>
			</tr>
		</table>
		<div class="form-group">联系方式</div>
		<table class="form-table" cellspacing="0" cellpadding="0" width="100%">
			<tr>
				<td class="form-left"><span class="form-required">*</span>联系人</td>
				<td class="form-right" colspan="3"><s:textfield
						name="supplier.linkman" cssClass="text required"></s:textfield></td>
			</tr>
			<tr>
				<td class="form-left"><span class="form-required">*</span>电话号码</td>
				<td class="form-right"><s:textfield name="supplier.phone"
						cssClass="text required"></s:textfield></td>
				<td class="form-left"><span class="form-required">*</span>手机号码</td>
				<td class="form-right"><s:textfield name="supplier.mobile"
						cssClass="text required"></s:textfield></td>
			</tr>
			<tr>
				<td class="form-left">传真号码</td>
				<td class="form-right"><s:textfield name="supplier.fax"
						cssClass="text"></s:textfield></td>
				<td class="form-left"><span class="form-required">*</span>E-mail</td>
				<td class="form-right"><s:textfield name="supplier.email"
						cssClass="text required"></s:textfield></td>
			</tr>
			<tr>
				<td class="form-left">通讯地址</td>
				<td class="form-right" colspan="3"><s:textarea
						name="supplier.address" cssClass="textarea">
					</s:textarea></td>
			</tr>
			<tr>
				<td class="form-left">收货地址</td>
				<td class="form-right" colspan="3"><s:textarea
						name="supplier.takeAddress" cssClass="textarea">
					</s:textarea></td>
			</tr>
		</table>
		<s:hidden name="supplier.id" />
		<s:hidden name="tabId" />
		<s:hidden name="windowPanelId" />
	</form>
	<script src="<%=path%>/js/prototype_for_validation.js"
		type="text/javascript"></script>
	<script src="<%=path%>/js/validation_cn.js" type="text/javascript"></script>
	<script src="<%=path%>/js/core.js" type="text/javascript"></script>
	<script src="<%=path%>/js/share.js" type="text/javascript"></script>
	<script src="<%=path%>/js/jquery.js" type="text/javascript"></script>
	<script src="<%=path%>/js/Validate.js" type="text/javascript"></script>
	<script src="<%=path%>/js/UsersSelect.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xWindowPanel.js" type="text/javascript"></script>
	<script src="<%=path%>/js/Draggable.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xToolbar.js" type="text/javascript"></script>
	<script src="<%=path%>/js/xToolbar.items.js" type="text/javascript"></script>
	<script type="text/javascript">
    $(document).ready(function(){
      var valie = new Validation('supplierForm',{immediate:true});
      new UsersSelect({
        url : '<%=path%>/system/ajax/listUsersByCondition.t4m',
				inputId : 'operatorId',
				title : '选择业务员',
				width : 184,
				multiple : false,
				selected : $("#operatorId").val()
			});
		});
	</script>
</body>
</html>